package com.pig_and_dog_congener;

public class wrong_equals_method {
    public static void main(String[] args){
        pig p = new pig();
        dog d = new dog();
        System.out.println("猪狗是同类："+ p.equals(d));
        System.out.println("猪狗是同类："+ d.equals(p));
    }
}
